package com.dishes.douguo.domain;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.Size;

public class User {
    private  Integer user_id;
    @NotBlank(message = "账号不能为空")
    @Size(min = 2,max = 30,message = "名称长度在 2 到 30 个字符")
    private  String username;
    @NotBlank(message = "密码不能为空")
    @Size(min = 2,max = 30,message = "名称长度在 2 到 30 个字符")
    private  String password;
    private  String created_at;
    private  String role;

    private String iconUrl;
    private Integer age;
    private String address;

    public String getIconUrl() {
        return iconUrl;
    }

    public void setIconUrl(String iconUrl) {
        this.iconUrl = iconUrl;
    }

    public Integer getAge() {
        return age;
    }

    public void setAge(Integer age) {
        this.age = age;
    }

    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address;
    }




    public String getCreated_at() {
        return created_at;
    }

    public void setCreated_at(String created_at) {
        this.created_at = created_at;
    }
    public Integer getUser_id() {
        return user_id;
    }

    public void setUser_id(Integer user_id) {
        this.user_id = user_id;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public String getRole() {
        return role;
    }

    public void setRole(String role) {
        this.role = role;
    }






}
